package com.etone.smartAudit.dto.fileOperation;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @author: sovy
 * @date: 2020/11/4
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(description = "文件移动表单")
public class FileMoveOrCopyDTO {

    @ApiModelProperty("文件路径(文件或者目录)")
    @NotEmpty
    private String sourceFile;

    @ApiModelProperty("目标路径（文件或者目录）")
    @NotEmpty
    private String destFile;

    @ApiModelProperty("是否覆盖，默认不覆盖，true覆盖，false不覆盖")
    private Boolean isReplace;
}
